package club.xyes.zkh.ecommerce.web.api.controller;

import club.xyes.zkh.ecommerce.web.controller.AbstractControllerSupport;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Create by 郭文梁 2019/5/15 0015 10:41
 * PageController
 * 页面转发控制器
 *
 * @author 郭文梁
 * @data 2019/5/15 0015
 */
@Controller
@RequestMapping("/page")
public class PageController extends AbstractControllerSupport {
    @GetMapping("/{viewName}")
    public String index(@PathVariable("viewName") String viewName) {
        return viewName;
    }
}
